package com.seckill.api.dto.user;


import com.seckill.common.constants.RegexConstants;
import com.seckill.common.enums.UserType;
import com.seckill.common.validate.annotations.EnumValid;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.time.LocalDateTime;

@Data
@ApiModel(description = "用户详情")
public class UserDTO {
    private Long id;

    /**
     * 用户名
     */
    private String username;

    /**
     * 注册手机号
     */
    private String phone;

    /**
     * 用户类型：1-管理员, 2-用户
     */
    private UserType type;

    /**
     * 账户余额
     */
    private Integer balance;
}
